package com.wayne.testapp.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.AppCompatButton;
import android.view.View;

import com.wayne.testapp.R;

import butterknife.ButterKnife;
import butterknife.InjectView;
import butterknife.OnClick;

public class MainActivity extends BaseActivity {

    private static final String TAG = "MainActivity";
    @InjectView(R.id.bt_recycle)
    AppCompatButton btRecycle;
    @InjectView(R.id.bt_retrofit)
    AppCompatButton btRetrofit;
    @InjectView(R.id.bt_download)
    AppCompatButton btDownload;
    @InjectView(R.id.bt_nohttp)
    AppCompatButton btNohttp;
    @InjectView(R.id.bt_progress)
    AppCompatButton btProgress;
    @InjectView(R.id.bt_rxjava)
    AppCompatButton bt_text;
    @InjectView(R.id.bt_tip)
    AppCompatButton bt_tip;
    @InjectView(R.id.bt_photoview)
    AppCompatButton bt_photoview;
    private AppCompatButton bt_recycle;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ButterKnife.inject(this);
        initView();
    }

    private void initView() {
    }

    @OnClick({R.id.bt_rx2,R.id.bt_photoview,R.id.bt_banner,R.id.bt_tab,R.id.bt_recycle, R.id.bt_retrofit, R.id.bt_download, R.id.bt_nohttp, R.id.bt_progress, R.id.bt_rxjava, R.id.bt_tip})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.bt_recycle:
                Intent recycleIntent = new Intent(this, TestRecycleActivity.class);
                startActivity(recycleIntent);
                break;
            case R.id.bt_retrofit:
                Intent retrofitIntent = new Intent(this, TestRetrofitAcitivty.class);
                startActivity(retrofitIntent);
                break;
            case R.id.bt_download:
                Intent downloadIntent = new Intent(this, TestDownloadActivity.class);
                startActivity(downloadIntent);
                break;
            case R.id.bt_nohttp:
                Intent nohttpIntent = new Intent(this, TestNoHttpActivity.class);
                startActivity(nohttpIntent);
                break;
            case R.id.bt_progress:
                Intent progressIntent = new Intent(this, TestProgressActivity.class);
                startActivity(progressIntent);
                break;
            case R.id.bt_rxjava:
                Intent textIntent = new Intent(this, TestRxjavaActivity.class);
                startActivity(textIntent);
                break;
            case R.id.bt_tip:
                Intent tipIntent = new Intent(this,TestTipActivity.class);
                startActivity(tipIntent);
                break;
            case R.id.bt_tab:
                Intent tabIntent = new Intent(this,TestViewActivity.class);
                startActivity(tabIntent);
                break;
            case R.id.bt_banner:
                Intent bannerIntent = new Intent(this,TestBannerActivity.class);
                startActivity(bannerIntent);
                break;
            case R.id.bt_photoview:
                Intent photoIntent = new Intent(this,TestPhotoActivity.class);
                startActivity(photoIntent);
                break;
            case R.id.bt_rx2:
                Intent bt_rx2Intent = new Intent(this,TestRxActivity.class);
                startActivity(bt_rx2Intent);
                break;
            default:
                break;
        }
    }


}
